package com.googlecode.phpunit4eclipse.j2phpunit.runner.api;

public class Failure extends AssertionError {

	private static final long serialVersionUID = 4523525005043899517L;

	private PHPUnitTestDescription description;
	
	private Throwable exception;

	public Failure(PHPUnitTestDescription description, Throwable exception) {
		this.description = description;
		this.exception = exception;
	}

	public PHPUnitTestDescription getDescription() {
		return description;
	}

	public Throwable getException() {
		return exception;
	}

}
